﻿using JMS;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace CheckIn
{
    public class Global
    {
        public static IServiceProvider ServiceProvider
        {
            get;
            set;
        }

        public static IConfiguration Configuration
        {
            get;
            set;
        }

        public static NetAddress[] GatewayAddresses
        {
            get;
            set;
        }

        static ITimeProvider _Timer;
        public static ITimeProvider Timer=> _Timer??=ServiceProvider.GetRequiredService<ITimeProvider>();
    }
}
